import request from '@/utils/request'

//user
const api = {

  // login
  // http://122.9.33.163:6300/project/3/interface/api/14
  login(sendData) {
    return request.request({
      url: '/user/login',
      method: 'POST',
      data: sendData,
      loading: false,
    })
  },

  // logout
  // http://122.9.33.163:6300/project/3/interface/api/68
  logout(sendData) {
    return request.request({
      url: '/user/logout',
      method: 'POST',
      data: sendData,
      loading: false,
    })
  },

  // userinfo
  // http://122.9.33.163:6300/project/3/interface/api/20
  userinfo(sendData) {
    return request.request({
      url: '/user/userinfo',
      method: 'GET',
      params: sendData,
      loading: false,
    })
  },
}
export default api